﻿using PropertyChanged;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Reflection.Metadata.Ecma335;
using System.Text;
using System.Threading.Tasks;

namespace UIWindows.Models.Devices
{
    public class ST5520ParametersModel : INotifyPropertyChanged
    {
        [DoNotNotify]
        public Guid MyGuid { get; set; }
        public string Name { get; set; }
        [DoNotNotify]
        public string UpdateName { get; set; }
        public DateTime UpdateTime { get; set; }
        /// <summary>
        /// 电压
        /// </summary>
        [Description("电压")] public int Voltage { get; set; } = 25;
        /// <summary>
        /// 量程
        /// </summary>
        [Description("量程")] public string MeasurementRange { get; set; } = "20";
        /// <summary>
        /// 测量速度
        /// </summary>
        [Description("测量速度")] public string SwitchingSpeed { get; set; } = "FAST";
        /// <summary>
        /// 测试时间
        /// </summary>
        [Description("测试时间")] public float TestTime { get; set; }
        /// <summary>
        /// 响应时间
        /// </summary>
        [Description("响应时间")] public float ResponseTime { get; set; }
        /// <summary>
        /// 比较器上限
        /// </summary>
        [Description("比较器上限")] public string ComparatorUp { get; set; } = "OFF";
        /// <summary>
        /// 比较器下限
        /// </summary>
        [Description("比较器上限")] public string ComparatorDown { get; set; } = "OFF";
        /// <summary>
        /// 比较器模式
        /// </summary>
        [Description("比较器模式")] public string ComparatorModel { get; set; } = "FAILstop";
        /// <summary>
        /// 是否正在使用
        /// </summary>
        [DoNotNotify]
        public bool IsBeingUsed { get; set; }

        public event PropertyChangedEventHandler? PropertyChanged;
    }
}
